#!/bin/bash

if [ ! -f main.aux ]
then
  pdflatex -shell-escape main 
fi

bibtex main
pdflatex -shell-escape main
